<template>
	<view class="content">
		<block v-if="BoosterGroupData.length>0">
			<view class="user-item-box" v-for="(item,index) in BoosterGroupData" :key="item.uid">
				<view class="user-head-box">
					<image :src="item.avatar" mode=""></image>
				</view>
				<view class="user-info-box">
					<text>{{item.nickname}}</text>
					<text>TLE:{{item.mobile}}</text>
				</view>
				<view class="user-integral-box">
					<text>积分收益：{{item.integral}}</text>
				</view>
			</view>
		</block>
		<!-- 无记录状态 -->
		<block v-else>
			<icon-status :imgUrl="'../../pageMember/static/icon9.png'" :statusInfo="'暂无数据'"></icon-status>
		</block>
	</view>
</template>

<script>
	import iconStatus from '@/components/noRecordIcon/iconStatus.vue';
	export default {
		components:{
			iconStatus
		},
		data(){
			return {
				BoosterGroupData:[],//我的助力团
			}
		},
		onLoad() {
			uni.showLoading({title:"加载中"});
			this.$u.api.assistantGroupApi({}).then(res=>{
				if(res.code==1){
					console.log('助力团：',res);
					this.BoosterGroupData = res.data;
				}
			});
		},
		methods:{
			
		},
		onReachBottom() {
			console.log("nihao");
		}
	}
</script>

<style lang="scss" scoped>
	.content{
		width: 100%;
		font-family: Microsoft YaHei;
		box-sizing: border-box;
		padding: 0 20rpx;
		.user-item-box{
			padding: 30rpx 0;
			display: flex;
			.user-head-box{
				flex: 0.15;
				line-height: 0;
				image{width: 90rpx;height: 90rpx;border-radius: 50rpx;}
			}
			.user-info-box{
				flex: 0.5;
				font-size: 30rpx;
				font-weight: bold;
				color: #333333;
				text:last-child{
					display: block;
					margin-top: 10rpx;
					font-size: 24rpx;
					font-weight: 400;
					color: #999999;
				}
			}
			.user-integral-box{
				flex: 0.35;
				font-size: 28rpx;
				font-weight: 400;
				color: #333333;
				align-self: center;
				display: flex;
				justify-content: flex-end;
			}
		}
	}
</style>